<?php

	/*
	*	进行登陆信息验证
	*	验证无误之后设置session
	*/

	
	class LoginModel {
		
		public function checkLogin() {
			
			$handle = new Login();
			
			if($handle->checkAcnt() && $handle->checkPasswd() && $handle->checkDb()) {
			
				$session = new Session();
			
				$session->setSession('statu', 'login');
				
				return true;
				
			} else {
				
				return false;
				
			}
			
		}
		
	}
?>